.class Lcom/melesta/obb/ObbDownloaderActivity$1;
.super Landroid/os/AsyncTask;
.source "ObbDownloaderActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/melesta/obb/ObbDownloaderActivity;->validateXAPKZipFiles()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/os/AsyncTask",
        "<",
        "Ljava/lang/Object;",
        "Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;",
        "Ljava/lang/Boolean;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic this$0:Lcom/melesta/obb/ObbDownloaderActivity;


# direct methods
.method constructor <init>(Lcom/melesta/obb/ObbDownloaderActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 168
    iput-object p1, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    return-void
.end method


# virtual methods
.method protected varargs doInBackground([Ljava/lang/Object;)Ljava/lang/Boolean;
    .locals 39
    .parameter "params"

    .prologue
    .line 188
    invoke-static {}, Lcom/melesta/obb/ObbDownloaderActivity;->access$500()Ljava/util/ArrayList;

    move-result-object v2

    invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v23

    :cond_0
    :goto_0
    invoke-interface/range {v23 .. v23}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_d

    invoke-interface/range {v23 .. v23}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v35

    check-cast v35, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;

    .line 189
    .local v35, xf:Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    move-object/from16 v0, v35

    iget-boolean v5, v0, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;->mIsMain:Z

    move-object/from16 v0, v35

    iget v6, v0, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;->mFileVersion:I

    invoke-static {v2, v5, v6}, Lcom/google/android/vending/expansion/downloader/Helpers;->getExpansionAPKFileName(Landroid/content/Context;ZI)Ljava/lang/String;

    move-result-object v21

    .line 191
    .local v21, fileName:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    move-object/from16 v0, v35

    iget-wide v5, v0, Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;->mFileSize:J

    const/16 v37, 0x0

    move-object/from16 v0, v21

    move/from16 v1, v37

    invoke-static {v2, v0, v5, v6, v1}, Lcom/google/android/vending/expansion/downloader/Helpers;->doesFileExist(Landroid/content/Context;Ljava/lang/String;JZ)Z

    move-result v2

    if-nez v2, :cond_2

    .line 192
    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    .line 275
    .end local v21           #fileName:Ljava/lang/String;
    .end local v35           #xf:Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    :cond_1
    :goto_1
    return-object v2

    .line 193
    .restart local v21       #fileName:Ljava/lang/String;
    .restart local v35       #xf:Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    :cond_2
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    move-object/from16 v0, v21

    invoke-static {v2, v0}, Lcom/google/android/vending/expansion/downloader/Helpers;->generateSaveFileName(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v21

    .line 195
    const/high16 v2, 0x4

    new-array v11, v2, [B

    .line 197
    .local v11, buf:[B
    :try_start_0
    new-instance v36, Lcom/android/vending/expansion/zipfile/ZipResourceFile;

    move-object/from16 v0, v36

    move-object/from16 v1, v21

    invoke-direct {v0, v1}, Lcom/android/vending/expansion/zipfile/ZipResourceFile;-><init>(Ljava/lang/String;)V

    .line 198
    .local v36, zrf:Lcom/android/vending/expansion/zipfile/ZipResourceFile;
    invoke-virtual/range {v36 .. v36}, Lcom/android/vending/expansion/zipfile/ZipResourceFile;->getAllEntries()[Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;

    move-result-object v19

    .line 202
    .local v19, entries:[Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    const-wide/16 v3, 0x0

    .line 203
    .local v3, totalCompressedLength:J
    move-object/from16 v10, v19

    .local v10, arr$:[Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    array-length v0, v10

    move/from16 v25, v0

    .local v25, len$:I
    const/16 v24, 0x0

    .local v24, i$:I
    :goto_2
    move/from16 v0, v24

    move/from16 v1, v25

    if-ge v0, v1, :cond_3

    aget-object v20, v10, v24

    .line 204
    .local v20, entry:Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    move-object/from16 v0, v20

    iget-wide v5, v0, Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;->mCompressedLength:J

    add-long/2addr v3, v5

    .line 203
    add-int/lit8 v24, v24, 0x1

    goto :goto_2

    .line 206
    .end local v20           #entry:Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    :cond_3
    const/4 v9, 0x0

    .line 207
    .local v9, averageVerifySpeed:F
    move-wide/from16 v33, v3

    .line 215
    .local v33, totalBytesRemaining:J
    move-object/from16 v10, v19

    array-length v0, v10

    move/from16 v25, v0

    const/16 v24, 0x0

    :goto_3
    move/from16 v0, v24

    move/from16 v1, v25

    if-ge v0, v1, :cond_c

    aget-object v20, v10, v24

    .line 216
    .restart local v20       #entry:Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    const-wide/16 v5, -0x1

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;->mCRC32:J

    move-wide/from16 v37, v0

    cmp-long v2, v5, v37

    if-eqz v2, :cond_a

    .line 217
    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;->mUncompressedLength:J

    move-wide/from16 v26, v0

    .line 218
    .local v26, length:J
    new-instance v12, Ljava/util/zip/CRC32;

    invoke-direct {v12}, Ljava/util/zip/CRC32;-><init>()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 219
    .local v12, crc:Ljava/util/zip/CRC32;
    const/16 v16, 0x0

    .line 221
    .local v16, dis:Ljava/io/DataInputStream;
    :try_start_1
    new-instance v17, Ljava/io/DataInputStream;

    move-object/from16 v0, v20

    iget-object v2, v0, Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;->mFileName:Ljava/lang/String;

    move-object/from16 v0, v36

    invoke-virtual {v0, v2}, Lcom/android/vending/expansion/zipfile/ZipResourceFile;->getInputStream(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v2

    move-object/from16 v0, v17

    invoke-direct {v0, v2}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 223
    .end local v16           #dis:Ljava/io/DataInputStream;
    .local v17, dis:Ljava/io/DataInputStream;
    :try_start_2
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v29

    .line 224
    .local v29, startTime:J
    :cond_4
    const-wide/16 v5, 0x0

    cmp-long v2, v26, v5

    if-lez v2, :cond_8

    .line 225
    array-length v2, v11

    int-to-long v5, v2

    cmp-long v2, v26, v5

    if-lez v2, :cond_6

    array-length v2, v11

    int-to-long v5, v2

    :goto_4
    long-to-int v0, v5

    move/from16 v28, v0

    .line 226
    .local v28, seek:I
    const/4 v2, 0x0

    move-object/from16 v0, v17

    move/from16 v1, v28

    invoke-virtual {v0, v11, v2, v1}, Ljava/io/DataInputStream;->readFully([BII)V

    .line 227
    const/4 v2, 0x0

    move/from16 v0, v28

    invoke-virtual {v12, v11, v2, v0}, Ljava/util/zip/CRC32;->update([BII)V

    .line 228
    move/from16 v0, v28

    int-to-long v5, v0

    sub-long v26, v26, v5

    .line 229
    invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J

    move-result-wide v14

    .line 230
    .local v14, currentTime:J
    sub-long v31, v14, v29

    .line 231
    .local v31, timePassed:J
    const-wide/16 v5, 0x0

    cmp-long v2, v31, v5

    if-lez v2, :cond_5

    .line 232
    move/from16 v0, v28

    int-to-float v2, v0

    move-wide/from16 v0, v31

    long-to-float v5, v0

    div-float v13, v2, v5

    .line 233
    .local v13, currentSpeedSample:F
    const/4 v2, 0x0

    cmpl-float v2, v2, v9

    if-eqz v2, :cond_7

    .line 234
    const v2, 0x3ba3d70a

    mul-float/2addr v2, v13

    const v5, 0x3f7eb852

    mul-float/2addr v5, v9

    add-float v9, v2, v5

    .line 239
    :goto_5
    move/from16 v0, v28

    int-to-long v5, v0

    sub-long v33, v33, v5

    .line 240
    move-wide/from16 v0, v33

    long-to-float v2, v0

    div-float/2addr v2, v9

    float-to-long v7, v2

    .line 241
    .local v7, timeRemaining:J
    const/4 v2, 0x1

    new-array v0, v2, [Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;

    move-object/from16 v37, v0

    const/16 v38, 0x0

    new-instance v2, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;

    sub-long v5, v3, v33

    invoke-direct/range {v2 .. v9}, Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;-><init>(JJJF)V

    aput-object v2, v37, v38

    move-object/from16 v0, p0

    move-object/from16 v1, v37

    invoke-virtual {v0, v1}, Lcom/melesta/obb/ObbDownloaderActivity$1;->publishProgress([Ljava/lang/Object;)V

    .line 245
    .end local v7           #timeRemaining:J
    .end local v13           #currentSpeedSample:F
    :cond_5
    move-wide/from16 v29, v14

    .line 246
    move-object/from16 v0, p0

    iget-object v2, v0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mCancelValidation:Z
    invoke-static {v2}, Lcom/melesta/obb/ObbDownloaderActivity;->access$300(Lcom/melesta/obb/ObbDownloaderActivity;)Z

    move-result v2

    if-eqz v2, :cond_4

    .line 247
    const/4 v2, 0x1

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_1

    move-result-object v2

    .line 255
    if-eqz v17, :cond_1

    .line 256
    :try_start_3
    invoke-virtual/range {v17 .. v17}, Ljava/io/DataInputStream;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_0

    goto/16 :goto_1

    .line 261
    .end local v3           #totalCompressedLength:J
    .end local v9           #averageVerifySpeed:F
    .end local v10           #arr$:[Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    .end local v12           #crc:Ljava/util/zip/CRC32;
    .end local v14           #currentTime:J
    .end local v17           #dis:Ljava/io/DataInputStream;
    .end local v19           #entries:[Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    .end local v20           #entry:Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    .end local v24           #i$:I
    .end local v25           #len$:I
    .end local v26           #length:J
    .end local v28           #seek:I
    .end local v29           #startTime:J
    .end local v31           #timePassed:J
    .end local v33           #totalBytesRemaining:J
    .end local v36           #zrf:Lcom/android/vending/expansion/zipfile/ZipResourceFile;
    :catch_0
    move-exception v18

    .line 262
    .local v18, e:Ljava/io/IOException;
    invoke-virtual/range {v18 .. v18}, Ljava/io/IOException;->printStackTrace()V

    .line 263
    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    goto/16 :goto_1

    .end local v18           #e:Ljava/io/IOException;
    .restart local v3       #totalCompressedLength:J
    .restart local v9       #averageVerifySpeed:F
    .restart local v10       #arr$:[Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    .restart local v12       #crc:Ljava/util/zip/CRC32;
    .restart local v17       #dis:Ljava/io/DataInputStream;
    .restart local v19       #entries:[Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    .restart local v20       #entry:Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    .restart local v24       #i$:I
    .restart local v25       #len$:I
    .restart local v26       #length:J
    .restart local v29       #startTime:J
    .restart local v33       #totalBytesRemaining:J
    .restart local v36       #zrf:Lcom/android/vending/expansion/zipfile/ZipResourceFile;
    :cond_6
    move-wide/from16 v5, v26

    .line 225
    goto :goto_4

    .line 237
    .restart local v13       #currentSpeedSample:F
    .restart local v14       #currentTime:J
    .restart local v28       #seek:I
    .restart local v31       #timePassed:J
    :cond_7
    move v9, v13

    goto :goto_5

    .line 249
    .end local v13           #currentSpeedSample:F
    .end local v14           #currentTime:J
    .end local v28           #seek:I
    .end local v31           #timePassed:J
    :cond_8
    :try_start_4
    invoke-virtual {v12}, Ljava/util/zip/CRC32;->getValue()J

    move-result-wide v5

    move-object/from16 v0, v20

    iget-wide v0, v0, Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;->mCRC32:J

    move-wide/from16 v37, v0

    cmp-long v2, v5, v37

    if-eqz v2, :cond_9

    .line 250
    const-string v2, "LVLDL"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "CRC does not match for entry: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    move-object/from16 v0, v20

    iget-object v6, v0, Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;->mFileName:Ljava/lang/String;

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v2, v5}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 251
    const-string v2, "LVLDL"

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string v6, "In file: "

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual/range {v20 .. v20}, Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;->getZipFileName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v2, v5}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 252
    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_1

    move-result-object v2

    .line 255
    if-eqz v17, :cond_1

    .line 256
    :try_start_5
    invoke-virtual/range {v17 .. v17}, Ljava/io/DataInputStream;->close()V

    goto/16 :goto_1

    .line 255
    :cond_9
    if-eqz v17, :cond_a

    .line 256
    invoke-virtual/range {v17 .. v17}, Ljava/io/DataInputStream;->close()V

    .line 215
    .end local v12           #crc:Ljava/util/zip/CRC32;
    .end local v17           #dis:Ljava/io/DataInputStream;
    .end local v26           #length:J
    .end local v29           #startTime:J
    :cond_a
    add-int/lit8 v24, v24, 0x1

    goto/16 :goto_3

    .line 255
    .restart local v12       #crc:Ljava/util/zip/CRC32;
    .restart local v16       #dis:Ljava/io/DataInputStream;
    .restart local v26       #length:J
    :catchall_0
    move-exception v2

    :goto_6
    if-eqz v16, :cond_b

    .line 256
    invoke-virtual/range {v16 .. v16}, Ljava/io/DataInputStream;->close()V

    :cond_b
    throw v2
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_0

    .line 266
    .end local v12           #crc:Ljava/util/zip/CRC32;
    .end local v16           #dis:Ljava/io/DataInputStream;
    .end local v20           #entry:Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    .end local v26           #length:J
    :cond_c
    new-instance v22, Ljava/io/File;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    move-object/from16 v0, v21

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v5, ".verified"

    invoke-virtual {v2, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    move-object/from16 v0, v22

    invoke-direct {v0, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 267
    .local v22, fileVerified:Ljava/io/File;
    if-eqz v22, :cond_0

    .line 269
    :try_start_6
    invoke-virtual/range {v22 .. v22}, Ljava/io/File;->createNewFile()Z
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_1

    goto/16 :goto_0

    .line 270
    :catch_1
    move-exception v18

    .line 271
    .restart local v18       #e:Ljava/io/IOException;
    invoke-virtual/range {v18 .. v18}, Ljava/io/IOException;->printStackTrace()V

    goto/16 :goto_0

    .line 275
    .end local v3           #totalCompressedLength:J
    .end local v9           #averageVerifySpeed:F
    .end local v10           #arr$:[Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    .end local v11           #buf:[B
    .end local v18           #e:Ljava/io/IOException;
    .end local v19           #entries:[Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    .end local v21           #fileName:Ljava/lang/String;
    .end local v22           #fileVerified:Ljava/io/File;
    .end local v24           #i$:I
    .end local v25           #len$:I
    .end local v33           #totalBytesRemaining:J
    .end local v35           #xf:Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    .end local v36           #zrf:Lcom/android/vending/expansion/zipfile/ZipResourceFile;
    :cond_d
    const/4 v2, 0x1

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    goto/16 :goto_1

    .line 255
    .restart local v3       #totalCompressedLength:J
    .restart local v9       #averageVerifySpeed:F
    .restart local v10       #arr$:[Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    .restart local v11       #buf:[B
    .restart local v12       #crc:Ljava/util/zip/CRC32;
    .restart local v17       #dis:Ljava/io/DataInputStream;
    .restart local v19       #entries:[Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    .restart local v20       #entry:Lcom/android/vending/expansion/zipfile/ZipResourceFile$ZipEntryRO;
    .restart local v21       #fileName:Ljava/lang/String;
    .restart local v24       #i$:I
    .restart local v25       #len$:I
    .restart local v26       #length:J
    .restart local v33       #totalBytesRemaining:J
    .restart local v35       #xf:Lcom/melesta/obb/ObbDownloaderActivity$XAPKFile;
    .restart local v36       #zrf:Lcom/android/vending/expansion/zipfile/ZipResourceFile;
    :catchall_1
    move-exception v2

    move-object/from16 v16, v17

    .end local v17           #dis:Ljava/io/DataInputStream;
    .restart local v16       #dis:Ljava/io/DataInputStream;
    goto :goto_6
.end method

.method protected bridge synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter "x0"

    .prologue
    .line 168
    invoke-virtual {p0, p1}, Lcom/melesta/obb/ObbDownloaderActivity$1;->doInBackground([Ljava/lang/Object;)Ljava/lang/Boolean;

    move-result-object v0

    return-object v0
.end method

.method protected onPostExecute(Ljava/lang/Boolean;)V
    .locals 3
    .parameter "result"

    .prologue
    const/4 v1, 0x0

    const/16 v2, 0x8

    .line 286
    invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 287
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mDashboard:Landroid/view/View;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$000(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 288
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mCellMessage:Landroid/view/View;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$100(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 289
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mStatusText:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$200(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/widget/TextView;

    move-result-object v0

    sget v1, Lcom/melesta/engine/R$string;->text_validation_complete:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 291
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    invoke-virtual {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->finish()V

    .line 292
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    invoke-virtual {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->finish()V

    .line 294
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #calls: Lcom/melesta/obb/ObbDownloaderActivity;->startEngineActivity()V
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$600(Lcom/melesta/obb/ObbDownloaderActivity;)V

    .line 296
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mPauseButton:Landroid/widget/Button;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$400(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/widget/Button;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/widget/Button;->setVisibility(I)V

    .line 318
    :goto_0
    invoke-super {p0, p1}, Landroid/os/AsyncTask;->onPostExecute(Ljava/lang/Object;)V

    .line 319
    return-void

    .line 307
    :cond_0
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mDashboard:Landroid/view/View;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$000(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 308
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mCellMessage:Landroid/view/View;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$100(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/view/View;

    move-result-object v0

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    .line 309
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mStatusText:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$200(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/widget/TextView;

    move-result-object v0

    sget v1, Lcom/melesta/engine/R$string;->text_validation_failed:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 310
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mPauseButton:Landroid/widget/Button;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$400(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/widget/Button;

    move-result-object v0

    new-instance v1, Lcom/melesta/obb/ObbDownloaderActivity$1$2;

    invoke-direct {v1, p0}, Lcom/melesta/obb/ObbDownloaderActivity$1$2;-><init>(Lcom/melesta/obb/ObbDownloaderActivity$1;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 316
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mPauseButton:Landroid/widget/Button;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$400(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/widget/Button;

    move-result-object v0

    const/high16 v1, 0x104

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    goto :goto_0
.end method

.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 168
    check-cast p1, Ljava/lang/Boolean;

    .end local p1
    invoke-virtual {p0, p1}, Lcom/melesta/obb/ObbDownloaderActivity$1;->onPostExecute(Ljava/lang/Boolean;)V

    return-void
.end method

.method protected onPreExecute()V
    .locals 2

    .prologue
    .line 172
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mDashboard:Landroid/view/View;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$000(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/view/View;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 173
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mCellMessage:Landroid/view/View;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$100(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/view/View;

    move-result-object v0

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    .line 174
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mStatusText:Landroid/widget/TextView;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$200(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/widget/TextView;

    move-result-object v0

    sget v1, Lcom/melesta/engine/R$string;->text_verifying_download:I

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(I)V

    .line 175
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mPauseButton:Landroid/widget/Button;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$400(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/widget/Button;

    move-result-object v0

    new-instance v1, Lcom/melesta/obb/ObbDownloaderActivity$1$1;

    invoke-direct {v1, p0}, Lcom/melesta/obb/ObbDownloaderActivity$1$1;-><init>(Lcom/melesta/obb/ObbDownloaderActivity$1;)V

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 182
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    #getter for: Lcom/melesta/obb/ObbDownloaderActivity;->mPauseButton:Landroid/widget/Button;
    invoke-static {v0}, Lcom/melesta/obb/ObbDownloaderActivity;->access$400(Lcom/melesta/obb/ObbDownloaderActivity;)Landroid/widget/Button;

    move-result-object v0

    sget v1, Lcom/melesta/engine/R$string;->text_button_cancel_verify:I

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setText(I)V

    .line 183
    invoke-super {p0}, Landroid/os/AsyncTask;->onPreExecute()V

    .line 184
    return-void
.end method

.method protected varargs onProgressUpdate([Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;)V
    .locals 2
    .parameter "values"

    .prologue
    .line 280
    iget-object v0, p0, Lcom/melesta/obb/ObbDownloaderActivity$1;->this$0:Lcom/melesta/obb/ObbDownloaderActivity;

    const/4 v1, 0x0

    aget-object v1, p1, v1

    invoke-virtual {v0, v1}, Lcom/melesta/obb/ObbDownloaderActivity;->onDownloadProgress(Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;)V

    .line 281
    invoke-super {p0, p1}, Landroid/os/AsyncTask;->onProgressUpdate([Ljava/lang/Object;)V

    .line 282
    return-void
.end method

.method protected bridge synthetic onProgressUpdate([Ljava/lang/Object;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 168
    check-cast p1, [Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;

    .end local p1
    invoke-virtual {p0, p1}, Lcom/melesta/obb/ObbDownloaderActivity$1;->onProgressUpdate([Lcom/google/android/vending/expansion/downloader/DownloadProgressInfo;)V

    return-void
.end method
